SUT Home

pttest[oa]

SUT test

Description

pttesto executes test (1) on specifies machines and has an exit value which is the logical OR of the test results.

pttesta executes test (1) on specifies machines and has an exit value which is the logical AND of the test results.

pttest is a symbolic link to pttesto.

Command Line Arguments

pttest[ao] [-all|-m <machine_file>|-M <machine_list>] <arguments to test>

-m <machine_file>
Specify a file with a list of destination machines. It is incorrect to use this with the -M option. This option must preceed all others.

-M <machine_list>
Specify a list of destination machines. The entire list must be surrounded by quotes. It is incorrect to use this with the -m option. This option must preceed all others.
<arguments to test>
the arguments to pass to test

Environment Variables

PT_MACHINE_FILE
If PT_MACHINE_FILE is set, the command will attempt to open the file whose name is stored in PT_MACHINE_FILE. This will be used if neither the -m or -M options are given.

Examples

To test for the existence of the file /home/johndoe/myfile on the machines specified in the file "destination_machines" use

pttest -m destination_machines -f /home/johndoe/myfile

If /home/johndoe/myfile is missing on any node, pttest will have an exit code of 1.

To do the same test, specifying machines on the command line, use

pttest -M "host1 host2 host3" -f /home/johndoe/myfile

To test on similarly named hosts as in the previous example, an abbreviation can be used

pttest -M "host%d@1-3" -f /home/johndoe/myfile

where the %d is replaced by the numbers 1-3 when the test is performed.

See Also

test(1), SUT(1)







Contact Emil Ong about issues concerning this page.